package models

import (
	"time"
	"vip_video/internal"
)

type SwiperModel struct {
	Id        int64      `json:"id" db:"id"`
	Thumb     string     `json:"thumb" db:"thumb"`
	Creator   string     `json:"creator" db:"creator"`
	CreatedAt time.Time  `json:"created_at" db:"created_at"`
	Updater   *string    `json:"updater" db:"updater"`
	UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
}

func (sm *SwiperModel) FullThumb() string {
	return internal.ParseStaticUrl(sm.Thumb)
}
